ngl: Optimize underlines in text
authorMatthias Clasen <mclasen@redhat.com>
Fri, 9 Apr 2021 03:11:06 +0000 (23:11 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 9 Apr 2021 03:37:51 +0000 (23:37 -0400)
commit0caa28c1dee734fc42411f61d96171d2621b9062
tree42fc9b2cef34cbc3739070375608eb7fa1965299
parentd8ba4b4114b523ca86676692731b5f9247b8596f
ngl: Optimize underlines in text

Opportunistically use the coloring program for
drawing underlines instead of the color program.
This avoids program changes in the middle of
text.

For the Emoji text scrolling benchmark, this reduces
the program changes per frame from > 1000 to around 100.
gsk/ngl/gsknglrenderjob.c